package com.xiaoshuidi.cloud.module.member.convert.coupon;

import com.xiaoshuidi.cloud.module.member.controller.admin.coupon.vo.*;
import com.xiaoshuidi.cloud.module.member.controller.app.coupon.vo.CouponCustomerValidQueryVo;
import com.xiaoshuidi.cloud.module.member.controller.app.coupon.vo.CouponCustomerVo;
import com.xiaoshuidi.cloud.module.member.pojo.coupon.CouponCustomerEntity;
import com.xiaoshuidi.cloud.module.member.pojo.coupon.CouponEntity;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface CouponConvert {

    CouponConvert INSTANCE = Mappers.getMapper(CouponConvert.class);

    CouponEntity convert(CouponForm couponForm);

    CouponEntity convert(CouponUpdateForm form);

    CouponCustomerEntity convert(CouponCustomerInsVo dto);

    CouponCustomerInsVo convert(CouponCustomerPyVo couponCustomerPyDto);

    List<CouponCustomerValidQueryVo> convert(List<CouponEntity> couponEntities);

    CouponCustomerInsVo convert(CouponCustomerPCForm form);

    List<CouponCustomerExportVo> convert2(List<CouponCustomerVo> list);

}
